﻿

using System;
using System.Reflection;

namespace NetMicro.EventBus
{
    /// <summary>
    /// 事件总线配置
    /// </summary>
    public class EventBusOptions
    {
        public EventBusOptions()
        {
            TrackerExpired = TimeSpan.FromDays(15);
            Version = "v1";
            UseDeadLetter = true;
          
        }

        /// <summary>
        /// 消息幂等到期时间
        /// </summary>
        public TimeSpan TrackerExpired { get; set; }

        /// <summary>
        /// 消息版本
        /// </summary>
        public string Version { get; set; }


        /// <summary>
        /// 是否使用死信队列
        /// </summary>
        public bool UseDeadLetter { get; set; }

    }
}